Socket
Socket
Sign inDemoInstall

readable-from-web

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readable-from-web

Experimental converter from WHATWG ReadableStream to readable-stream Readable


Version published
Maintainers
2
Created
Source

Readable from Web

CI Coverage Version

An experimental converter from WHATWG ReadableStream to readable-stream Readable, loosely following the functionality of Node's own implementation of Readable.fromWeb to the extent possible without introducing anything new.

Install

This package can be installed via npm.

npm install readable-from-web

Usage

import { readableFromWeb } from 'readable-from-web';

async function example(request, init) {
  const response = await fetch(request, init);
  const whatwgReadableStream = fetch.body;
  const readableStreamReadable = readableFromWeb(whatwgReadableStream);
}

License

This code is released under the MIT license.

FAQs

Package last updated on 25 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc